# 如何输出时间：1.先import。引进的意思，指的是引进时间这个库（datetime）；datetime.date.isoformat(datetime.date.yoday
# time_now是自定义命名，用time_now来下定义
# import datetime
#
# time_now = datetime.date. isoformat(datetime.date.today())
# # now = input(time_now)
#
# print("课表查询网站")
#
# import time
# print('Now time:', time. strftime('%H:%M:%S', time.localtime(time.time())))
#
# user_name = ["guosiwen", "liliumang", "jianglaoban"]
# user_password = ["12", "34", "11"]
# # 加入会员账户
# vip_user_name = ["guojunbin"]
# vip_password = ["111"]
#
# count = 3
# while True:
#     count -= 3
#
#     # 登录账户密码，将账号密码信息导入
#     username = input("账号：")
#     password = input("密码：")
#
#     if username in user_name or username in vip_user_name:
#         # 确认账号密码是否正确，在这个时候我们要把账号密码都录入信息库中
#         if password in user_password or password in vip_password:
#             print('欢迎', username, '来到欢乐世界')
#     else:
#         print("您输入的账号密码错误，请重新确认输入")
#             if username in vip_user_name:
#                 if password in vip_password:
#                     print('欢迎亲爱的', username, "会员来到您的黄金屋")
#
#                     print('请输入您想要使用的功能')

import  time
print('当前时间为：', time.strftime('%Y-%m-%d %H-%m-%S', time.localtime(time.time())))

user_date = ["guosiwen", "liliumang", "jianglaoban"]
password_date = ["111", "222", "333"]
vip_user_date = ["guojunbin"]
vip_password = ["123"]

count = 3
while True:
    count -= 1

    username = input("账号：")
    password = input("密码：")

    if username in user_date or username in vip_user_date:
    # 验证账号
        if password in password_date or password in vip_password:
            print('欢迎VIP', username, '登录网址')
            # 验证是否为VIP
            if username in vip_user_date:
                if password in vip_password:
                    count = 10
                    print('weclond to', username, 'come here!')
    else:
        print("您输入的账号密码错误，请尝试重新输入")
        if username in user_date:
            if password in password_date:
                print('欢迎', username,'登录网址')
        else:
            print("错误")
